package com.wjk.Demo04;

public class Test03 {
    public static void main(String[] args) {
        Dad d=new Son();
        d.show();
//        d.method();
        Son s=(Son)d;
        s.method();
    }
}

class Dad{
    public void show(){
        System.out.println("dad..show...");
    }
}
class Son extends Dad{
    public void show(){
        System.out.println("zi..show...");
    }
    public void method(){
        System.out.println("zi..method...");
    }
}
